/* 图片悬停效果 */
.image-container img, 
img:not(.nav-container img) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-container img:hover, 
img:not(.nav-container img):hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* 灯箱样式 */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
    overflow: hidden; /* 防止滚动条出现 */
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    cursor: move; /* 指示图片可以移动/缩放 */
    user-select: none; /* 禁止选择文本 */
    object-fit: contain; /* 保持图片比例 */
    image-rendering: -webkit-optimize-contrast; /* 提高图片清晰度 */
    image-rendering: crisp-edges; /* 提高图片清晰度 */
    transform: translateZ(0); /* 开启GPU加速 */
    backface-visibility: hidden; /* 提高渲染性能 */
}

/* 缩放工具提示 */
#lightbox div {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1001;
    pointer-events: none; /* 确保不阻挡点击事件 */
} 